﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.Common
{
    /// <summary>
    /// 菜单表
    /// </summary>
    public class Menu : EntityBase<int>
    {
        /// <summary>
        /// 上级ID
        /// </summary>
        public int ParentID { get; set; }
        /// <summary>
        /// 菜单显示
        /// </summary>
        [StringLength(50)]
        public string Text { get; set; }
        /// <summary>
        /// 窗口标题
        /// </summary>
        [StringLength(50)]
        public string Title { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 权限ID
        /// </summary>
        public int AuthorityID { get; set; }
    }
}
